package com.zzg.springboot.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.zzg.springboot.entity.UserMap;

public interface UserMapDao extends JpaRepository<UserMap,Long> {
	@Query(value="select user.id, user.name, user.pwd, user.address, user.sex, user.birthday from user"
			+ " where user.id = :id", nativeQuery = true)
	public UserMap getMapById(@Param("id") long id);
}
